
Component({
    options: {
        multipleSlots: true, // 在组件定义时的选项中启用多slot支持
    },
    properties: {
        type: {
            type: String,
            value: 'BUTTON',
            // observer: 'showType',
        },
        btn: {
            type: Array,
            value: [],
            // observer: 'showBtn',
        },
    },
    data: {
        paddingBottom: ''
    },
    lifetimes: {
        attached() {
        },
    },

    methods: {
        onPress(e: any) {
            const { item, index } = e.currentTarget.dataset;
            this.triggerEvent('event', { item, index });
        }
    },
});
